package org.vic.strategy.duckDemo;

/**
 * 我是一只模型鸭！不会叫，会游泳，不会飞
 */
public class ModelDuck extends Duck {
    public ModelDuck() {
        flyBehavior = new FlyNoWay();
        quackBehavior = new QuackNoWay();
    }

    @Override
    public void myName() {
        System.out.println("我是一只模型鸭！");
    }
}
